<?php
namespace app\common\behavior;

use think\Db;

class Home
{
    /**
     * CMS模型点击量
     * @param $params
     */
    public function cmsClick(&$params)
    {
        $request = request();
        $mid = $request->param('mid/d',1);
        $aid = $request->param('aid/d',0);
        cms_moudle($mid)->where('aid',$aid)->setInc('click',1,10);  //延迟10S更新
    }

}